package com.tao.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName CommonResult
 * @Author HETAO
 * @Date 2020/5/9 9:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

    private Integer code;

    private String message;

    private T      t;

    public CommonResult(Integer code,String message){
        this.code = code;
        this.message = message;
    }
}
